import { ElNotification, ElMessageBox } from 'element-plus'
import useUserStore from '@/store/modules/user'
import { webNotify } from '@/utils/index'
import Cookies from 'js-cookie'
export default {
  onMessage(connection) {
    // // 接收聊天数据
    // connection.on('receiveChat', (data) => {
    //   const { fromUser, message } = data
    //   if (data.userid != useUserStore().userId) {
    //     ElNotification({
    //       title: fromUser.nickName,
    //       message: message,
    //       type: 'success',
    //       duration: 3000
    //     })
    //   }
    //   webNotify({ title: fromUser.nickName, body: message })
    // })
  }
}
const MsgType = {
  M001: 'onlineNum',
  M002: 'connId',
  LogOut: 'logOut'
}
ddd